
#ifndef SETTINGSADAPTER_H_
#define SETTINGSADAPTER_H_

#include <QObject>

class SettingsAdapter : public QObject
{
	Q_OBJECT
public:
	SettingsAdapter(QObject *parent = 0);
	virtual ~SettingsAdapter();
	Q_INVOKABLE
	bool getShuffle();
	Q_INVOKABLE
	void setShuffle(bool shuffle);
	Q_INVOKABLE
	bool getRepeat();
	Q_INVOKABLE
	void setRepeat(bool repeat);

private:
    QString getValueFor(const QString &objectName, const QString &defaultValue);
	void saveValueFor(const QString &objectName, const QString &inputValue);
};

#endif /* SETTINGSADAPTER_H_ */
